<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div id="app"></div>
<div id="demo"></div>

<!-- react核心库 -->
<script src="../lib/react.development.js"></script>
<!-- react操作dom -->
<script src="../lib/react-dom.development.js"></script>
<!-- jsx转js -->
<script src="../lib/babel.min.js"></script>
<script type="text/babel">
  // 创建虚拟dom
  const VDOM = (<h3 id="title">
    <span>Hello,React</span>
  </h3>)
  const TDOM = document.getElementById("demo")
  console.log(VDOM)
  console.log(TDOM)
  debugger
  // 渲染虚拟dom
  ReactDOM.render(VDOM, document.getElementById("app"))
</script>
</body>
</html>